// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import Router from 'vue-router'
import App from './App'
// import Home from './components/HelloFromVux'
import configRouter from './route.config'
import store from './store/store'
import { AlertPlugin, ConfirmPlugin } from 'vux'

Vue.use(Router)
Vue.use(AlertPlugin)
Vue.use(ConfirmPlugin)
import wx from './api/http'
wx.install(Vue)
const router = new Router({
  // mode: 'abstract',
  routes: configRouter
})

// const routes = [{
//   path: '/',
//   component: Home
// }]
//
// const router = new VueRouter({
//   routes
// })

FastClick.attach(document.body)

/* eslint-disable no-new */
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
